package com.fling.abcde.wxapi.utils;

import com.lib.common.bean.BaseResp;

public class WXPersonalInfo extends BaseResp {

	private String openid;
	private String nickname;
	private int sex;
	private String language;
	private String city;
	private String province;
	private String country;
	private String headimgurl;
	private String privilege;
	private String unionid;

	public void setOpenid(String openid) {

		this.openid = openid;
	}

	public void setNickname(String nickname) {

		this.nickname = nickname;
	}

	public void setSex(int sex) {

		this.sex = sex;
	}

	public void setLanguage(String language) {

		this.language = language;
	}

	public void setCity(String city) {

		this.city = city;
	}

	public void setProvince(String province) {

		this.province = province;
	}

	public void setCountry(String country) {

		this.country = country;
	}

	public void setHeadimgurl(String headimgurl) {

		this.headimgurl = headimgurl;
	}

	public void setPrivilege(String privilege) {

		this.privilege = privilege;
	}

	public void setUnionid(String unionid) {

		this.unionid = unionid;
	}

	public String getOpenid() {

		return openid;
	}

	public String getNicknam() {

		return nickname;
	}

	public String getSex() {

		return sex == 1 ? "男" : "女";
	}

	public String getLanguage() {

		return language;
	}

	public String getCity() {

		return city;
	}

	public String getProvince() {

		return province;
	}

	public String getCountry() {

		return country;
	}

	public String getHeadimgurl() {

		return headimgurl;
	}

	public String getPrivilege() {

		return privilege;
	}

	public String getUnionid() {

		return unionid;
	}

	@Override
	public String toString() {

		return "WXPersonalInfo{" +
			"openid='" + openid + '\'' +
			", nickname='" + nickname + '\'' +
			", sex=" + (sex == 1 ? "男" : "女") +
			", language='" + language + '\'' +
			", city='" + city + '\'' +
			", province='" + province + '\'' +
			", country='" + country + '\'' +
			", headimgurl='" + headimgurl + '\'' +
			", privilege='" + privilege + '\'' +
			", unionid='" + unionid + '\'' +
			'}';
	}
}